import request from '@/utils/request'

export function otaUpgradeHistory(data) {
  return request({
    url: '/ota/upgrade-history',
    method: 'post',
    data
  })
}


export function importOtaUpgrade(data) {
  return request({
    url: '/ota/upgrade',
    method: 'post',
    headers: {'Content-Type': 'multipart/form-data'},
    data
  })
}

export function cancelOtaUpgrade(data) {
  return request({
    url: '/ota/upgrade/cancel',
    method: 'post',
    data
  })
}
